package demo.service;

import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;

public interface Calculator {
    /**
     * 查询支持的因子
     * 
     * @return
     */
    Set<String> supportFeatures();

    /**
     * 异步计算其所支持的因子
     * 
     * @param userId
     * @param fields
     * @return
     */
    Future<Map<String, Object>> asyncCompute(long userId, Map<String, Map<String, Object>> fields);

}
